home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / diz2p100.zip / PCBTEST.BAT < prev   
DOS Batch File  |  1993-06-15  |  547b  |  29 lines

  1. @echo off
  2. if exist pcbpass.txt del pcbpass.txt
  3. if exist pcbfail.txt del pcbfail.txt
  4.  
  5. rem * 4DOS commands *
  6. if %@ext[%1]==gif goto end
  7. if %@ext[%1]==zip goto zip
  8. if %@ext[%1]==arj goto zip
  9. if %@ext[%1]==lzh goto zip
  10. goto end
  11.  
  12. :zip
  13. rem ■ Testing ZIP file integrity
  14. pkunzip -t %1 > pcbfail.txt
  15. if errorlevel == 1 goto failed
  16.  
  17. rem ■ Checking for included FILE_ID.DIZ for description
  18. diz-2pcb c:\diz2pcb\diz-2pcb.cnf %1 %3
  19. recom -sc:\diz2pcb\diz2-c.@@@ %1
  20.  
  21. del pcbfail.txt
  22. goto end
  23.  
  24. :failed
  25. move %1 c:\reject
  26. goto end
  27.  
  28. :end
  29.